switchport trunk native vlan

This command sets the native VLAN to the interface when set to Trunking mode.

Syntax

switchport trunk native vlan <vlan id>

Command

Description

<vlan id>

Specifies a valid VLAN interface ID. Range is 1 to 3999.

Default

This is set to VLAN 1 (the default VLAN).

Note

VLAN ID values range from 1 to 3999.
Configure which VLAN the interface uses as its native VLAN when in Trunking mode. Packets from this VLAN leaving the interface will not be tagged with the VLAN number. Any untagged packets received on the interface are considered to be tagged with VLAN ID.

Command Mode

Privileged User

Related Commands

switchport mode

Example

This example sets the native VLAN on GigabitEthernet 4/2 to 3.

(config-data)# interface gigabitethernet 4/2
(conf-if-GE 4/2)# switchport trunk native vlan 3